package com.aku.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/*声明是一个配置文件类*/
@Configuration
/*扫描service包*/
@ComponentScan("com.aku.service")
/*加载jdbc配置文件*/
@PropertySource("classpath:jdbc.properties")
/*加载jdbc数据源配置，mybatis配置*/
@Import({JdbcConfig.class,MybatisConfig.class})
/*开启事务管理*/
@EnableTransactionManagement
public class SpringConfig {
}
